package com.fxu.jushuitan.dto.wms;

import com.fxu.jushuitan.dto.PageReq;
import lombok.Getter;
import lombok.Setter;

/**
 * 库存查询请求
 * @author fangxu
 * @since 2023-09-13
 * @version 1.0.0
 **/
@Getter
@Setter
public class InventoryQueryReq extends PageReq {

    /**
     * 非必填
     * 分仓公司编号，值不传或为0查询所有仓的总库存，其它为指定仓的库存
     */
    private Integer wmsCoId;

    /**
     * 非必填
     * 商品编码,多个用逗号分隔，最多20，与修改时间不能同时为空
     */
    private String skuIds;

    /**
     * 非必填
     * 款式编码,多个用逗号分隔，最多20，与修改时间不能同时为空
     */
    private String iIds;

    /**
     * 非必填
     * 商品名称，最多100个，多个商品名称用逗号隔开
     */
    private String names;

    public InventoryQueryReq(Integer pageIndex, String skuIds) {
        super(pageIndex);
        this.skuIds = skuIds;
    }

    public InventoryQueryReq(Integer pageIndex, Integer wmsCoId, String skuIds) {
        super(pageIndex);
        this.wmsCoId = wmsCoId;
        this.skuIds = skuIds;
    }

    public InventoryQueryReq(Integer pageIndex, Integer wmsCoId, String skuIds, String iIds, String names) {
        super(pageIndex);
        this.wmsCoId = wmsCoId;
        this.skuIds = skuIds;
        this.iIds = iIds;
        this.names = names;
    }

    public InventoryQueryReq(Integer pageIndex, Integer wmsCoId, String begin, String end) {
        super(pageIndex, begin, end);
        this.wmsCoId = wmsCoId;
    }
}
